package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.mapper.AchievemenMapper;
import com.ygs.secs.model.Achievemen;
import com.ygs.secs.service.AchievemenService;

@Service
public class AchievemenServiceImpl implements AchievemenService {

    @Resource
    private AchievemenMapper achievemenMapper;

    @Override
    public int deleteByPrimaryKey(Integer achieveid) {
        return achievemenMapper.deleteByPrimaryKey(achieveid);
    }

    @Override
    public int insert(Achievemen record) {
        return achievemenMapper.insert(record);
    }

    @Override
    public int insertSelective(Achievemen record) {
        return achievemenMapper.insertSelective(record);
    }

    @Override
    public Achievemen selectByPrimaryKey(Integer achieveid) {
        return achievemenMapper.selectByPrimaryKey(achieveid);
    }

    @Override
    public int updateByPrimaryKeySelective(Achievemen record) {
        return achievemenMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Achievemen record) {
        return achievemenMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Achievemen> list) {
        return achievemenMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Achievemen> list) {
        return achievemenMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Achievemen> list) {
        return achievemenMapper.batchInsert(list);
    }

    @Override
    public List<Achievemen> getAchievementsbysemester(String semester, String stuid) {
        return achievemenMapper.getAchievementsbysemester(semester, stuid);
    }


}
